package com.bms.cfcmms.model.system.authority;

import com.bms.cfcmms.util.annotation.FieldDefine;
import com.bms.cfcmms.util.annotation.TableDefine;
import com.bms.cfcmms.model.BaseModel;
import lombok.Data;

import javax.persistence.Column;

/**
 * Created by carl on 2016/8/4.
 */
@Data
@TableDefine(group = "角色管理", primaryKey = "roleGroupId", id = 9907, title = "角色管理")
public class RoleGroup extends BaseModel {

    @FieldDefine(title = "分组编码", number = 10)
    @Column(length = 10, nullable = false)
    private String roleGroupId;

    @FieldDefine(title = "角色分组名称", nameField = true, number = 20)
    @Column(length = 20, nullable = false)
    private String title;

    @FieldDefine(title = "备注", number = 30)
    @Column(length = 255, nullable = false)
    private String remark;
}
